/**
 * Copyright (c) 2018 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package io.cw.entity.background;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

/**
 * 教室预约时段 实体类
 *
 * @author cw
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("rel_room_time")
public class RelRoomTimeEntity implements Serializable {

	@ApiModelProperty(value = "教室时段ID")
	private String id;

	@ApiModelProperty(value = "教室ID")
	private String roomId;

	@ApiModelProperty(value = "开始时间(yyyy-MM-dd HH:mm:ss", required = true, example = "2024-01-15 00:00:00")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Timestamp startTime;

	@ApiModelProperty(value = "结束时间(yyyy-MM-dd HH:mm:ss", required = true, example = "2024-01-15 00:00:00")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Timestamp endTime;

	private Integer isValid;

	@TableField(exist = false)
	@ApiModelProperty(value = "座位列表")
	private List<RelRoomSeatEntity> seatList;
}